package com.tnr.dao;

import com.tnr.dto.EmployeeDto;
import com.tnr.pojo.Employee;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;
@Mapper
public interface EmployeeDao {
    //@Select("select * from employee")
    List<Employee> findEmployeeList(EmployeeDto employeeDto);

    int deleteEmplyeeByIds(@Param("ids") String... eids);

    int addEmployee(EmployeeDto employeeDto);
     @Update( "UPDATE employee SET e_name=#{e_name},e_sex=#{e_sex},e_sal=#{e_sal},e_date=#{e_date} where e_id=#{e_id}")
    int updEmployee(EmployeeDto employeeDto);
}
